<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
 
class Home extends CI_Controller {
 
    function Home(){
        parent::__construct();
 
 		if(!$this->session->userdata('logged')){
        	redirect('login');
        }
    }
 
    public function index(){
        $data['page_title']  = "Home";
        $this->template->show('home', $data);
    }
 
}